﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using System.Web.Hosting;
using System.Web.Mvc;
using System.Web.SessionState;

namespace ShopPowerTemplate.Presentation.Mvc.Test
{
    public class ModelHelper
    {
        internal static List<object> GetList(object data)
        {
            IEnumerable list = (IEnumerable)data.GetType().GetProperty("rows").GetValue(data);
            return list.Cast<object>().ToList();
        }
    }
}
